package com.xzm.springboot05jsp.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 3052
 * @create 2020-08-08 21:44
 */
@Controller
public class HelloController {

    @RequestMapping("/tosuccess")
    public String sayHello(ModelMap map){
        map.addAttribute("message","xzm");
        return "success";
    }
}
